package 预习;

public class For循环 {
    public static void main(String[] args) {
//        for (int i = 0; i <= 10; i++) {
//            System.out.println("梦金园黄金 你值得拥有");
//        }
        int sum = 0;
        for (int i = 1; i <= 5; i++) {
            //System.out.println(i);
            sum += i;
        }
        System.out.println(sum);
    }
}
